package com.eastidea.live.field.multiplechoice;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.eastidea.live.entity.FrmInfMultipleChoice;

@Service
public class MultipleChoiceServiceImpl implements MultipleChoiceService {

	@Resource
	MultipleChoiceDao multipleChoiceDao;
	MultipleChoiceOptionsDao optionsDao;

	@Override
	public void saveOrUpdate(FrmInfMultipleChoice po) {
		multipleChoiceDao.saveOrUpdate(po);
		
//		for (Object option: JSONArray.fromObject(obj.get("options"))) {
//			JSONObject jobj = (JSONObject) option;
//			FrmInfMultipleOptions optionPo = optionsDao.get(Long.valueOf(jobj.getString("fid")));
//			PoUtil.GenerateMultipleChoiceOptionsPo(jobj);	
//			optionsDao.update(optionPo); 
//		}
	}

}
